package com.wander.designBehavioral.state;

/**
 * @Author : WDYin
 * @Date : 2020/10/11
 * @Desc :
 */
public class StateStop implements State {
    @Override
    public String pay(Context context) {
        System.out.println("支付结束");
        context.setState(this);
        return "success";
    }

    @Override
    public String toString() {
        return "Stop state";
    }
}
